/*
 * AFurtherDummyValidatedBean.java
 * 
 * Created on 28-Nov-2007, 20:00:53
 * 
 * Copyright (C)
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307 USA
 */

package com.grubby.databean;

import com.grubby.databean.constraints.annotation.MaxInclusive;
import com.grubby.databean.constraints.annotation.MinInclusive;
import com.grubby.databean.constraints.annotation.NotEmpty;
import com.grubby.databean.constraints.annotation.Pattern;

/**
 * This is a bean used to test the validation annotations in the unit test suite
 * A. HARMEL-LAW. E: andrew.harmel.law@gmail.com
 * @version 0.1
 */
public class AFurtherDummyValidatedBean {
    
    private double myDouble;
    private double anotherDouble;
    private String myString;
    private String anotherString;
    
    public AFurtherDummyValidatedBean() {
    }

    public double getMyDouble() {
        return myDouble;
    }

    @MaxInclusive(10)
    public void setMyDouble(double aDouble) {
        this.myDouble = aDouble;
    }

    public double getAnotherDouble() {
        return anotherDouble;
    }

    @MinInclusive(10)
    public void setAnotherDouble(double anotherDouble) {
        this.anotherDouble = anotherDouble;
    }

    public String getMyString() {
        return myString;
    }

    @NotEmpty
    public void setMyString(String myString) {
        this.myString = myString;
    }

    public String getAnotherString() {
        return anotherString;
    }

    @Pattern("HELLO")
    public void setAnotherString(String anotherString) {
        this.anotherString = anotherString;
    }
}
